.cardd {
  position: relative;
  width: calc(100% - 40px); /* Adjust margin-left and margin-right */
  max-width: 480px; /* Maximum width of the card */
  height: auto; /* Allow height to adjust based on content */
  background-color: #f2f2f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
  box-shadow: 0 0 0 5px #ffffff80;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: 0 auto 3rem; /* Centering the card vertically and adding bottom margin */
}

.cardd-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: auto;
}

.card svg {
  width: 48px;
  fill: #333;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cardd:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.cardd__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(242, 242, 242, 0.5); /* Transparent background color */
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.cardd:hover .cardd__content {
  transform: rotateX(0deg);
}

.cardd__title {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 700;
}

.cardd:hover svg {
  scale: 0;
}

.cardd__description {
  margin: 10px 0 0;
  font-size: 14px;
  color: black;
  line-height: 2.4;
  font-family: 'Droid Arabic Naskh', sans-serif;
  font-style: italic;
}

.cardd__description:hover {
  /* Make the background transparent on hover */
  background-color: rgba(240, 240, 240, 0.5); /* Change the alpha value (0.5) as needed */
}

#cphoto {
  width: 100%;
  height: auto; /* Allow height to adjust based on the width */
  border-radius: 0.5rem;
}
